<?php  require("abifunktsioonid2.php");  if(isSet($_REQUEST["sort"])){     $kaubad=kysiKaupadeAndmed($_REQUEST["sort"]);  } else {     $kaubad=kysiKaupadeAndmed();  }  //print_r($kaubad);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">  <head>      <title>Info juhtide kohta</title>      <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />  </head>  <body>         <table>       <tr>         <th><a href="staatus2.php?sort=auto_id">isiku_id</a></th>         <th><a href="staatus2.php?sort=registri_nr">nimi</a></th>       </tr>       <?php foreach($kaubad as $kaup): ?>         <tr>           <td><?=$kaup->isiku_id ?></td>           <td><?=$kaup->nimi ?></td>                </tr>       <?php endforeach; ?>     </table>  </body>